package com.example.easybuy.mappers;

import com.example.easybuy.entity.PType;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface TypeMapper {
    List<PType> getList(Map<String, Object> map);

    List<PType> selectMySon(Map<String, Object> map);

    int doUpdate(Map<String, Object> map);

    int doDel(Map<String, Object> map);

    int doAdd(Map<String, Object> map);

    PType getCategory(Map<String, Object> map);

    int findSon(Map<String, Object> map);

    PType getParent(Map<String, Object> map);

    int findProduct(Map<String, Object> map);

}
